import { axios, defaultAxios } from '@/request/request';

export const useLogin = (params: any) => {
  return axios.post('/login/logindo.html', params);
};
export const getTabList = () => {
  return axios.get('/city/ajaxgetchilds.html?id=0');
};
export const getServe = () => {
  return axios.get('/visitorList?page=1&limit=20');
};
export const getFanHouse = () => {
  return defaultAxios.get('/getFanHouse');
};
export const getHouseDetail = (params: any) => {
  return defaultAxios.get('/getHouseDetail', { params });
};
export const fang_house_sand = () => {
  return defaultAxios.get('/fang_house_sand');
};
export const fang_rental = () => {
  return defaultAxios.get('/fang_rental');
};
export const getRentalDetail = (params: any) => {
  return defaultAxios.get('/getRentalDetail', { params });
};
export const getmanagement = () => {
  return defaultAxios.get('/getmanagement');
};
export const getrental = () => {
  return defaultAxios.get('/getrental');
};
export const getshopsale = () => {
  return defaultAxios.get('/getshopsale');
};
export const getshoprental = () => {
  return defaultAxios.get('/getshoprental');
};
export const getbusinessDetail = (params: any) => {
  return defaultAxios.get('/getbusinessDetail', { params });
};
export const getbusinessDetail1 = (params: any) => {
  return defaultAxios.get('/getbusinessDetail1', { params });
};
export const getshopDetail = (params: any) => {
  return defaultAxios.get('/getshopDetail', { params });
};
export const getshopDetail1 = (params: any) => {
  return defaultAxios.get('/getshopDetail1', { params });
};
